package SendRedBag;

import java.util.ArrayList;

public class Demo {
    public static void main(String[] args) {
        Manager manger = new Manager();
        manger.name = "群主";
        manger.money = 100;

        Menber one = new Menber();
        one.name = "我是A";
        one.money = 0;

        Menber two = new Menber();
        two.name = "我是B";
        two.money = 0;

        Menber three = new Menber();
        three.name = "我是C";
        three.money = 0;

        manger.show();
        one.show();
        two.show();
        three.show();
        System.out.println("===============");

//群主发红包
        ArrayList moneyList = manger.send(20,3);

        one.receive(moneyList);
        two.receive(moneyList);
        three.receive(moneyList);

        manger.show();
        one.show();
        two.show();
        three.show();

    }
}
